package net.easyjava.base.bean;

import net.easyjava.base.constants.UserConstants;
import net.easyjava.tools.DBean;

/**
 * Created by wenxiaoning on 15/12/18.
 */
public class UserBean extends DBean {
    private static final long serialVersionUID = -7410415249830862501L;
    private String userName;
    private String password;
    private String mobile;
    private String email;
    private int isDel;
    private int status;//1:普通用户、2:通过浏览器产生代用户
    private int type;//状态：1：正常使用、2:暂时封禁状态、3:永久封禁
    private long createTime;
    private long updateTime;
    private long lastLoginTime;

    public UserBean() {
        this.userName = "";
        this.password = "";
        this.mobile = "";
        this.email = "";
        this.isDel = 0;
        this.status = UserConstants.STATUS_NORMAL;
        this.type = UserConstants.TYPE_NORMAL;
        this.createTime = System.currentTimeMillis();
        this.updateTime = System.currentTimeMillis();
        this.lastLoginTime = System.currentTimeMillis();
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public int getIsDel() {
        return isDel;
    }

    public void setIsDel(int isDel) {
        this.isDel = isDel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public long getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(long lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
}
